import {defineStore} from "pinia";
import {SET_LOGIN_MESSAGE} from "@/store/user/mutationTypes";

export const loginConfigStore = defineStore({
    id: 'loginConfig',
    state: () => ({
        // 登录消息，用于控制登录弹框
        loginMessage: "",
    }),
    getters: {
        getLoginMessage(state) {
            return state.loginMessage
        }
    },
    actions: {
        // 设置消息
        [SET_LOGIN_MESSAGE](loginMessage: any) {
            this.loginMessage = loginMessage
        },
    }
})
